package pl.un4giv3n.mightvsmagic.entity;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
@NamedQueries({
	@NamedQuery(name="find.all.guardians", query="select g from Guardian g"),
})
@Entity
public class Guardian {

	private Long id;
	private String name;
	private String description;
	private BonusType bonus;
	
	@GeneratedValue
	@Id
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String desc) {
		this.description = desc;
	}
	@Enumerated(EnumType.STRING)
	public BonusType getBonus() {
		return bonus;
	}
	public void setBonus(BonusType bonus) {
		this.bonus = bonus;
	}
	
	
}
